var $ = require("../../utils/Ajax.js");
Page({
  data: {
    PictureUrl: getApp().PictureUrl,
    Collection: []
  },

  onLoad: function (options) {
    var that = this;
    wx.setNavigationBarTitle({
      title: "我的收藏"
    }) 

    $.Ajax("api/collection","GET",{},function(res){
      if(res.s){
        that.setData({
          Collection: res.d.userCollection
        })
      }else{
        wx.showToast({
          title: res.m,
          icon: 'none',
          duration: 2000
        })
      }
    })
  },

  onShow: function () {

  }
})